package com.jzqf.harmonydemo.utils;

import com.google.gson.Gson;

public class JsonUtil {

    public static String toJson(Object object) {
        if (object == null) {
            return "null";
        } else {
            return new Gson().toJson(object);
        }
    }
}
